<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ref 响应式类型变量</title>
</head>
<body>
<div id="app">
    <h1>{{ i }}</h1>
    <h1 v-html="i"></h1>
    <h1 v-text="i"></h1>
</div>
<script type="module">
    import {createApp, ref} from "../../../../js/vue.esm-browser.js";

    const app = createApp({
        setup() {
            let i = ref(123)

            console.log(i);
            return {
                i,
            }
        }
    })

    app.mount("#app")
</script>
</body>
</html>